<?php

namespace App\Kuafu\User\Model;

use App\Kuafu\Base\Model\BaseModel;

class UserIdCardDetailModel extends BaseModel
{
    protected $table      = 'user_idcard_detail';

    public    $timestamps = false;

    protected $fillable = [
        'userId',
        'facePhoto',
        'backPhoto',
        'name',
        'idCardNumber',
        'gender',
        'birthDate',
        'address',
        'nation',
        'office',
        'startDate',
        'endDate',
        'createdByUid',
        'updatedByUid',
        'createdAt',
        'updatedAt',
    ];


    /**
     * 性别
     */
    const GENDER_MAN     = 1;
    const GENDER_WOMAN   = 2;
    const GENDER_MAPPING = [
        self::GENDER_MAN   => '男',
        self::GENDER_WOMAN => '女',
    ];

}
